﻿using Abp.Application.Services.Dto;
using System.Collections.Generic;

namespace Batman.Core.Models
{
    /// <summary>
    /// 包含子数据的数据DTO 应用场景，例如：树级结构
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class NameValueChildrenDto<T> : NameValueDto
    {
        /// <summary>
        /// 子数据
        /// </summary>
        public List<T> Children { get; set; }

        public NameValueChildrenDto() : base() { }

        public NameValueChildrenDto(string name, string value) : base(name, value) { }


        public NameValueChildrenDto(string name, string value, List<T> children) : base(name, value)
        {
            this.Children = children;
        }
    }
}
